import type { App } from 'vue'
import { createPinia } from 'pinia'
import { useWebSocketStore } from './websocket'
import { useTokenStore } from './token'

export function setupStore(app: App) {
  const pinia = createPinia()
  app.use(pinia)
  useTokenStore()
  useWebSocketStore()
  return pinia
}
